package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.CcGenre;

public interface CcGenreDAO extends CrudRepository<CcGenre, Long> {
	@Query("select c.gename from CcGenre c where c.genreid=?1")
	public String queryName(long d);

	@Query("select c from CcGenre c where c.gename like %?1%")
	public List<CcGenre> findByGename(String gename);
}
